package org.java.user.api;

import org.java.user.api.damain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-center")
public interface UserCenter {
        @GetMapping("/user/load/{name}")
    User loadUserByName(@PathVariable("name") String name);
}
